﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace DARE
{
    public class CScrollBarData : CWidgetData
    {
        public float incrementation;
        public Vector2 sliderSize;
        public float value;

        public override void FillDataStructure(CWidget wid)
        {
            CScrollBar w = wid as CScrollBar;
            base.FillDataStructure(wid);
            incrementation = w.Incrementation;
            sliderSize = w.SliderSize;
            value = w.Value;
        }

        public override void FillFromDataStructure(ref CWidget wid, CHUDSystem hud)
        {
            base.FillFromDataStructure(ref wid, hud);
            (wid as CScrollBar).Incrementation = incrementation;
            (wid as CScrollBar).SliderSize = sliderSize;
            (wid as CScrollBar).Value = value;
        }
    }
}
